import { defineApplicationConfig } from '@gll/vite-config';

export default defineApplicationConfig({
  overrides: {
    build: {
      outDir: 'gw',
      minify: 'terser',
      terserOptions: {
        mangle: true,
        format: {
          comments: false,
        },
        compress: {
          keep_infinity: true,
          drop_console: true,
          drop_debugger: true,
        },
      },
    },
    optimizeDeps: {
      include: [
        '@iconify/iconify',
        // 'ant-design-vue/es/locale/zh_CN',
        // 'ant-design-vue/es/locale/en_US',
        'lodash-es',
        // 'dayjs',
        // 'dayjs/locale/zh-cn',
      ],
    },
  },
});
